package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 10100
 */
@Data
@ApiModel("设备采集记录表")
public class SysDeviceCollectRecord implements Serializable {
    @ApiModelProperty("主键ID")
    private Long id;

    @ApiModelProperty("用户ID")
    private Long userId;

    @ApiModelProperty("用户名")
    private String userName;

    @ApiModelProperty("设备ID")
    private Long deviceId;

    @ApiModelProperty("设备编号")
    private String deviceIdentifier;

    @ApiModelProperty("记录类型")
    private String recordType;

    @ApiModelProperty("记录值")
    private String recordValue;

    @ApiModelProperty("采集时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date collectTime;

    @ApiModelProperty("创建时间")
    private String remark;
}